﻿<script type="text/template" id="list-docproperty-item-template">
    <td class="text-center">
        <%= model.Order %>
    </td>
    <td>
        <%= model.Name %>
    </td>
    <td>
        <%= model.TypeName %>
    </td>
    <td>
        <%= dateFormat( model.UpdatedAt, jsResources.lang.DateFormat) %>
    </td>
    <td>
       <input type="checkbox"  <%= model.IsActive == true ? 'checked="checked"' : '' %> name = "IsActive" class="cbxIsActive" />
    </td>
    <td>
        <a href="javascript:void(0)" class="grid-update"><%= jsResources.lang.GridEdit %></a>    
    </td>
    <td>
         <a href="javascript:void(0)" class="grid-delete"><%= jsResources.lang.GridDelete %></a>               
    </td>
</script>
<script type="text/template" id="docproperty-form-template">
    <form id="docproperty-form" onsubmit="return false;">
        <ul class="idata-form">
            <li>
             <span class="idata-form-title">
                   <%= jsResources.lang.ManageDocProperty_Name %>    
             </span>
             <span>
                 <input type="text" name="Name" id="Name" required value="<%= model.Name %>">
             </span>   
            </li>

            <li>
                   <span class="idata-form-title">
                   <%= jsResources.lang.ManageDocProperty_TypeName %>    
                    </span>
                    <span>
                         <select name="Type" id="Type">
                        <%= VH.MakeOption(VOFFICE.DocumentProperty.DocTypeList, model.Type) %>
                        </select>
                    </span>
            </li>
            <li>
                <span class="idata-form-title">
                   <%= jsResources.lang.ManageDocProperty_Active %>    
                </span>
                <span>
                     <input type="checkbox" name = "IsActive" id="IsActive" <%= model.IsActive == true ? 'checked="checked"' : '' %> />
                </span>
            </li>
            <li>
                   <span class="idata-form-title">
                    <%= jsResources.lang.ManageDocProperty_Default %>    
                     </span>
                     <span>
                    <input type="checkbox" name = "IsDefault" id="IsDefault" <%= model.IsDefault == true ? 'checked="checked"' : '' %> />
                    </span>
            </li>
        </ul>
    </form>
</script>
